﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace ControllerStudy2.Controllers
{
    public class XStringController : Controller
    {
        //
        // GET: /XString/
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Encode(String Fullname)
        {
            ViewBag.EncodeB64 = Fullname.EncodeBase64();
            ViewBag.EncodeMD5 = Fullname.EncodeMD5();
            ViewBag.DecodeB64 = Fullname.EncodeBase64().DecodeBase64();
            return View("Index");
        }
	}
}